package com.esxy.manage.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.esxy.entity.TbUser;
import com.esxy.service.TbContentService;
import com.esxy.service.TbUserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/user")
public class TbUserController  {

    @Reference(interfaceClass = TbUserService.class,check = false)
    private TbUserService tbUserService;

    @RequestMapping("/getUsermsgsByUsername")
    @ResponseBody
    public TbUser getUsermsgByUsername(String username,String password){
        TbUser user = tbUserService.getUserByUsername(username,password);
        return user;
    }
}
